<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<div>
	<form id="infoForm" target="hiddenFrame" action="${path}/mc/devicesaveInfo" method="post" enctype="multipart/form-data">
		<input type="hidden" name="entity.id" value="${entity.id}" />
		<fieldset style="padding-left: 10px;">
			<table>
				<tr>
			  		<td>用户id</td>
			  		<td>
			  			<input type="text" name="entity.userId" value="<c:choose><c:when test="${empty entity.userId}"></c:when><c:otherwise>${entity.userId}</c:otherwise></c:choose>"
			  				class="{required:true,messages:{required:'用户Id不能为空'}}"> 
			  		</td>
			  	</tr>
			  	<tr>
			  		<td>a：安卓，i：IOS</td>
			  		<td>
			  			<select name="entity.frontType" dir="${entity.frontType}" >
			  				<option value="a">安卓</option>
			  				<option value="i">IOS</option>
			  			</select>
			  		</td>
			  	</tr>
			  	<tr>
			  		<td>设备号</td>
			  		<td>
			  			<input type="text" name="entity.deviceToken" value="<c:choose><c:when test="${empty entity.deviceToken}"></c:when><c:otherwise>${entity.deviceToken}</c:otherwise></c:choose>"
			  				class="{required:true,messages:{required:'设备号不能为空'}}"> 
			  		</td>
			  	</tr>
			  	<tr>
			  		<td>更新时间</td>
			  		<td class="right">
	  				<input name="entity.updateTime" type="text" class="time beginTimeClass searchInputAndSelect" readonly="readonly" 
	  				value="<fmt:formatDate value="${entity.updateTime}" pattern="yyyy-MM-dd" />" />
  				</td>
			  	</tr>
			  	<tr>
			  		<td>是否接收</td>
			  		<td>
			  			<select name="entity.isReceive" dir="${entity.isReceive}" >
			  				<option value="1">接收</option>
			  				<option value="2">不接收</option>
			  			</select>
			  		</td>
			  	</tr>
		   </table>
		</fieldset>
	</form>
</div>
